package weapons;

import controllers.Point;


/**
 * @author Jeroen
 * @version 1.0
 * @created 24-mei-2012 14:07:14
 */
public class Torpedo extends Bullet{

	private int MAXIMUM_SPEED = 25;//m/s 
	private static final int DAMAGE_BULLET = 100;//hp/bullet
	private static final int RANGE = 10000;	//in meters
	private static final int FOLLOW_SHIP_RANGE = 1000;// will folow a ship if it is within range
	private static final int TURNING_SPEED = 1;//1 degree per second	
	private int distanceToTravel;
	private int hit_chance = 1-(distanceToTravel / 5000);
	
	public Torpedo(Point position){
		super(position);
		setImage("\\waypoint.png");
		System.out.println("Instance " + this.getClass() + " created, without reference to goalkeeper!");
	}
	
	public int getMaximumSpeed() {
		return MAXIMUM_SPEED;
	}
	
	public void setMaximumSpeed(int maxSpeed) {
		this.MAXIMUM_SPEED = maxSpeed;
	}
	
	public int getDistanceToTravel(){
		return this.distanceToTravel;
	}
	
	public void setDistanceToTravel(int distanceToTravel)
	{
		this.distanceToTravel = distanceToTravel;
	}

	public int getHit_chance() {
		return hit_chance;
	}


	public void setHit_chance(int hit_chance) {
		this.hit_chance = hit_chance;
	}
	
	public void finalize() throws Throwable {

	}

}